package com.review.Test;

import java.util.concurrent.ArrayBlockingQueue;

public class MyArrayBlockingQueue {
	
	public static void main(String[] args) throws InterruptedException {
		ArrayBlockingQueue<Object> queue = new ArrayBlockingQueue<>(1);
		queue.add("a");
		System.out.println(queue);
		//queue.add("b");
//		boolean offer = queue.offer("b");
//		System.out.println(offer);
		queue.put("b");
	}

}
